/**
 * 
 */
package fr.ema.arch3d.editor.mainGUI;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTable;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;

import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;

//VS4E -- DO NOT REMOVE THIS LINE!
public class EvolutionProcess extends JInternalFrame {

    private static final long serialVersionUID = 1L;
    private JButton jButton0;
    private JButton jButton1;
    private JSeparator jSeparator0;
    private JLabel jLabel0;
    private JProgressBar jProgressBar0;
    private JTable jTable0;
    private JScrollPane jScrollPane0;
    private static final String PREFERRED_LOOK_AND_FEEL = "javax.swing.plaf.metal.MetalLookAndFeel";
    public EvolutionProcess() {
	initComponents();
    }

    private void initComponents() {
    	setVisible(true);
    	setLayout(new GroupLayout());
    	add(getJButton0(), new Constraints(new Leading(31, 10, 10), new Leading(9, 10, 10)));
    	add(getJButton1(), new Constraints(new Leading(167, 10, 10), new Leading(9, 12, 12)));
    	add(getJSeparator0(), new Constraints(new Leading(1, 473, 10, 10), new Leading(58, 10, 10, 10)));
    	add(getJLabel0(), new Constraints(new Leading(5, 10, 10), new Leading(65, 10, 10)));
    	add(getJProgressBar0(), new Constraints(new Leading(31, 426, 10, 10), new Leading(38, 12, 12)));
    	add(getJScrollPane0(), new Constraints(new Leading(69, 200, 10, 10), new Leading(98, 122, 10, 10)));
    	setSize(487, 342);
    }

    private JScrollPane getJScrollPane0() {
    	if (jScrollPane0 == null) {
    		jScrollPane0 = new JScrollPane();
    		jScrollPane0.setViewportView(getJTable0());
    	}
    	return jScrollPane0;
    }

    private JTable getJTable0() {
    	if (jTable0 == null) {
    		jTable0 = new JTable();
    		jTable0.setModel(new DefaultTableModel(new Object[][] { { "Name", }, { "Behavior", }, { "Interface", }, { "Interaction", }, { "Attribute", },
    				{ "Mapping", }, }, new String[] { "Consistency checking", }) {
    			private static final long serialVersionUID = 1L;
    			Class<?>[] types = new Class<?>[] { Object.class, };
    
    			public Class<?> getColumnClass(int columnIndex) {
    				return types[columnIndex];
    			}
    		});
    	}
    	return jTable0;
    }

    private JProgressBar getJProgressBar0() {
    	if (jProgressBar0 == null) {
    		jProgressBar0 = new JProgressBar();
    		jProgressBar0.setString("0 %");
    	}
    	return jProgressBar0;
    }

    private JLabel getJLabel0() {
    	if (jLabel0 == null) {
    		jLabel0 = new JLabel();
    		jLabel0.setText("Evolution planning");
    	}
    	return jLabel0;
    }

    private JSeparator getJSeparator0() {
    	if (jSeparator0 == null) {
    		jSeparator0 = new JSeparator();
    	}
    	return jSeparator0;
    }

    private JButton getJButton1() {
    	if (jButton1 == null) {
    		jButton1 = new JButton();
    		jButton1.setText("Stop");
    	}
    	return jButton1;
    }

    private JButton getJButton0() {
    	if (jButton0 == null) {
    		jButton0 = new JButton();
    		jButton0.setText("Pause");
    	}
    	return jButton0;
    }

    private static void installLnF() {
	try {
	    String lnfClassname = PREFERRED_LOOK_AND_FEEL;
	    if (lnfClassname == null)
		lnfClassname = UIManager.getCrossPlatformLookAndFeelClassName();
	    UIManager.setLookAndFeel(lnfClassname);
	} catch (Exception e) {
	    System.err.println("Cannot install " + PREFERRED_LOOK_AND_FEEL
		    + " on this platform:" + e.getMessage());
	}
    }

    /**
     * Main entry of the class.
     * Note: This class is only created so that you can easily preview the result at runtime.
     * It is not expected to be managed by the designer.
     * You can modify it as you like.
     */
    public static void main(String[] args) {
	installLnF();
	SwingUtilities.invokeLater(new Runnable() {
	    @Override
	    public void run() {
		EvolutionProcess internalFrame = new EvolutionProcess();
		JFrame frame = new JFrame();
		JDesktopPane desktop = new JDesktopPane();
		internalFrame.setBounds(10, 10, 320, 240);
		desktop.add(internalFrame);
		frame.add(desktop, BorderLayout.CENTER);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setTitle("EvolutionProcess");
		frame.pack();
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
	    }
	});
    }

}
